<?php
header('Content-Type: text/html; charset=utf-8');


?>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html">
    <meta charset=utf-8>
    <title>Lista Individual</title>
    <link rel="stylesheet" href="css/ferias_listarUm.css" />


</head>
<style>
    body
    {
        background-image:url(../img/bg2.jpg);
        background-size:100%;
    }
</style>
<body>
<h3> <strong>Listagem de Férias <?=(isset($nome))?" - ".$nome:""?></strong></h3>
<form name="form-feriasIndividual" method="post" action="index.php?p=listarUm">
    <div class="div-dadosCadastrais">
        <p>
            <label>Nome Contratado: </label>
            <select name="listaContratados" id="idListaContratados" autofocus="autofocus">
                <option>Selecione o Contratado</option>
                <?php foreach ($dados as $funcionario){ ?>
                    <option value="<?=$funcionario['matricula']?>"><?=($funcionario['nome'])?></option>
                <?php }?>

                <p><input type="submit" name="btnConfirma" value="Confirmar" >
            </select>
        </p>

    </div>

    <?php if (isset($nome)){  ?>

    <div class="div-lista">
        <p>
            <label>Data Inicio: </label>
            <input type="date" name="nome" id="idNome" />
        </p>
        <p>
            <label>Data Fim: </label>
            <input type="date" name="nome" id="idNome" />
        </p>

        <p>Situacao:
            <input type="radio" name="situacao" /> Agendar
            <input type="radio" name="situacao" /> Confirmar
            <br/>
        </p>
        Obs:

        <textarea style="height: 30px; width: 250px" name="observacao" id="idObservacao" rows="7" cols="20"></textarea>


        </p>
    </div>

    <?php } ?>

</form>


<div class="div-links">
    <a href="../menu.php"><img src='../img/home1.png'width="70"/></a>
    <a href="index.php"><img src='../img/retorno.png'width="70"/></a>
</div>

</body>
</html>